﻿<%@ Control Language="C#" %>
<%@ Register Assembly="Antu.WebControls" Namespace="Antu.WebControls" TagPrefix="CBW" %>

<table runat="server" id="showmsg" visible="false" cellspacing="0" cellpadding="0"
    width="100%" border="0" class="window_tab_list" align="center">
    <tr>
        <th height="30">
            上传附件
        </th>
    </tr>
    <tr>
        <td style="text-align: left" height="100px">
            上传附件目前仅支持jpg,gif,jpeg,bmp,doc,docx,xls,pdf,png格式！
        </td>
    </tr>
</table>
<div style="text-align:center; width:100%;">
    <CBW:CustomGridView id="GridList" runat="server" allowpaging="True" cssClass="window_tab_list" showcmpandcancel="False" autogeneratecolumns="False" showitemnumber="True"
    hidetextlength="13" allowonmouseoverevent="True" pagesize="10" datakeynames="ID" width="100%" 
    autogeneratedeleteconfirm="True" customsortexpression="" showhidecolmodel="None" 
    EmptyDataText="">
            <Columns>
                <asp:TemplateField HeaderText="文件名">
                    <itemstyle horizontalalign="Left" width="400px" />
                    <itemtemplate>
                    &nbsp;<a target=_blank href='../ZSManage/showfile.aspx?id=<%#Eval("id") %>'><%#Eval("name") %></a></itemtemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="上传日期">
                    <itemstyle horizontalalign="Center"  />
                    <itemtemplate>
                    <%#Convert.ToDateTime(Eval("ADDTIME").ToString()).ToShortDateString() %></itemtemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="操作">
                    <itemstyle horizontalalign="center" width="60px" />
                    <itemtemplate>
                    <a href='proupfujian.aspx?id=<%#Eval("id") %>&iid=<%=Request["iid"] %>&foldername=<%=Request["foldername"] %>&rd=<%=Request["rd"] %>&action=del'><asp:Literal ID="Literal1" runat="server" text="删除"></asp:Literal></a>
                    </itemtemplate>
                </asp:TemplateField>
            </Columns>
            <PagerSettings Visible="False" />
        </CBW:CustomGridView>
</div>

<br />
<table runat="server" id="uptable" visible="false" cellspacing="0" cellpadding="0"
    width="550" border="0" class="window_tab_list" align="center">
    <tr>
        <th colspan="2" height="30">
            上传附件>>
            <asp:Label ID="fujianfolder" runat="server"></asp:Label>
        </th>
    </tr>
    <tr>
        <td width="100px" style="text-align: right">
            文件名：
        </td>
        <td style="text-align: left;">
            <asp:TextBox ID="filename" runat="server" /><br />
            (如不填则选择上传的文件名为默认文件名)
        </td>
    </tr>
    <tr>
        <td style="text-align: right">
            上传文件：
        </td>
        <td style="text-align: left;">
            <asp:FileUpload ID="picFile" runat="server" /><br />
            (支持jpg,gif,jpeg,bmp,doc,docx,xls,pdf,png格式)
        </td>
    </tr>
    <tr>
        <td style="text-align: center; height: 30px" colspan="2">
            <asp:Button ID="upfile" runat="server" Text="上 传" Style="background-image: url('../../themes/Default/Images/an.gif');
                width: 80px; height: 24px" />&nbsp;

        </td>
    </tr>
</table>
